package com.sh.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 *
 * @author longjinhua
 * @date 2023-02-10 16:32:02
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods extends Model<Goods> implements Serializable  {
    @TableId(value = "gno")
    private String gno;
    private String gName;
    public String getGno() {
        return gno;
    }
    public void setGno(String gno) {
        this.gno = gno;
    }
    public String getGName() {
        return gName;
    }
    public void setGName(String gName) {
        this.gName = gName;
    }

    /**
     * 获取主键值
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.gno;
    }
}

